/*
 * @Author: xiaozhuang-c-language 3535851673@qq.com
 * @Date: 2025-04-19 17:28:27
 * @LastEditors: xiaozhuang-c-language 3535851673@qq.com
 * @LastEditTime: 2025-04-19 22:42:10
 * @FilePath: /zhuang/TestpGroup/test.cc
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

#include<iostream>
#include<unistd.h>
#include"Daemon.hpp"
using namespace std;

int main()
{

  Daemon(true,true);
  while(true)
  {
    sleep(1);//模拟执行任务
  }

//   pid_t id = fork();
//   if(id == 0)
//  {
//      while(true)
//     {
//       cout << "I am a process: "<< getpid() << endl;
//       sleep(1);
//     }
//   }
//   sleep(3);
//   cout << "I am  a father process: " << getpid() << endl;
//   sleep(100);
  return 0;
}
